package com.Eric.BBSM.Utils;

import com.alibaba.druid.sql.visitor.SQLASTOutputVisitor;

/**
 * @author Eric
 * @Create 2020-09-02  20:39
 * @Version Demo
 **/
public class mathRand {
    public static void main(String[] args) throws InterruptedException {

        for (int i = 0; i < 3; i++) {
            int random =(int)(Math.random()*2);
            System.out.println("random = " + random);
            Thread.sleep(500);
            boolean flag= random==1?true:false;
            if(flag)
            {
                System.out.println("明天来！");
            }else{
                System.out.println("明天不来");
            }
        }
    }

}
